package com.zhenhua.client.view;

import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.JButton;
import java.awt.FlowLayout;
import javax.swing.JTextField;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.JLabel;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class ExamRecordPanel extends JPanel {
	private JTextField textField;
	private JTable table;

	/**
	 * Create the panel.
	 */
	public ExamRecordPanel() {
		setLayout(new BorderLayout(0, 0));
		
		JPanel panel = new JPanel();
		add(panel, BorderLayout.NORTH);
		panel.setLayout(new BorderLayout(0, 0));
		
		JPanel panel_3 = new JPanel();
		panel.add(panel_3, BorderLayout.NORTH);
		panel_3.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5));
		
		JButton btnNewButton = new JButton("\u6DFB\u52A0");
		panel_3.add(btnNewButton);
		
		JButton btnNewButton_1 = new JButton("\u5220\u9664");
		panel_3.add(btnNewButton_1);
		
		JButton btnNewButton_2 = new JButton("\u4FEE\u6539");
		panel_3.add(btnNewButton_2);
		
		JPanel panel_4 = new JPanel();
		panel.add(panel_4, BorderLayout.SOUTH);
		panel_4.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 5));
		
		JLabel label = new JLabel("\u6309\u5B66\u5458\u7F16\u53F7\u67E5\u627E\uFF1A");
		panel_4.add(label);
		
		textField = new JTextField();
		panel_4.add(textField);
		textField.setColumns(10);
		
		JButton btnNewButton_3 = new JButton("\u67E5\u8BE2");
		panel_4.add(btnNewButton_3);
		
		JPanel panel_1 = new JPanel();
		add(panel_1, BorderLayout.CENTER);
		
		JScrollPane scrollPane = new JScrollPane();
		panel_1.add(scrollPane);
		
		table = new JTable();
		table.setModel(new DefaultTableModel(
			new Object[][] {
				{null, null, null, null, null, null, null},
				{null, null, null, null, null, null, null},
				{null, null, null, null, null, null, null},
				{null, null, null, null, null, null, null},
				{null, null, null, null, null, null, null},
			},
			new String[] {
				"\u7F16\u53F7", "\u5B66\u5458\u7F16\u53F7", "\u8003\u8BD5\u79D1\u76EE", "\u8003\u8BD5\u65E5\u671F", "\u8003\u8BD5\u7ED3\u679C", "\u662F\u5426\u901A\u8FC7", "\u6559\u7EC3\u7F16\u53F7"
			}
		));
		scrollPane.setViewportView(table);
		
		JPanel panel_2 = new JPanel();
		add(panel_2, BorderLayout.SOUTH);
		
		JButton btnNewButton_4 = new JButton("\u9996\u9875");
		btnNewButton_4.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		panel_2.add(btnNewButton_4);
		
		JButton btnNewButton_5 = new JButton("\u4E0A\u4E00\u9875");
		panel_2.add(btnNewButton_5);
		
		JButton btnNewButton_6 = new JButton("\u4E0B\u4E00\u9875");
		panel_2.add(btnNewButton_6);
		
		JButton btnNewButton_7 = new JButton("\u672B\u9875");
		panel_2.add(btnNewButton_7);

	}

}
